/**
 * Created by HUANGFR2 on 8/19/2016.
 */
const express = require('express');
const session = require('express-session');
const bodyParser = require('body-parser');
var path = require('path');
var favicon = require('serve-favicon');
var app = express();

app.use(express.static('./public'));
app.use(favicon(path.join(__dirname, '../public', 'favicon.ico')));
app.use(session({secret : "abc"}));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
require('../routes/merchant.server.router')(app);
require('../routes/dish.server.router')(app);
require('../routes/complaint.server.router')(app);
//var router = express.Router();

module.exports = app;